/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo928;

/**
 *
 * @author Administrator
 */
import demo924.*;
import java.io.File;
import java.util.*;

public class Sum {
     public static void main(String[] args) throws Exception {
         //Scanner cin=new Scanner(System.in);
     
         Scanner cinfile=new Scanner( 
                 new File("e:/javapro/data.txt"));
         String data1=cinfile.nextLine();
         String data[]=data1.split(",");
         int sum=0;
         for(String s:data){
             sum=sum+Integer.parseInt(s);
         }
     }
}
